<?php echo $this->doctype('XHTML1_STRICT'); ?>
<?php
    $this->title = "Eliminazione immagini.";
    $this->headTitle($this->title);
    $club_img = $this->club_img;

    $allDisco = $this->allDisco;
    $zonaList = $this->zonaList;
?>
<?php
/**
 *  dispay all disco in  sponsor0
 */
$line = '<div id="box">';
foreach ($allDisco as $key=>$allDisco2){
    $line_new = '<h2><a href="'. $this->url(array('controller'=>'Club',
                                                  'name'=> $allDisco2[0],
                                                   ), 'locale', TRUE) .'">' . $allDisco2[1]
              . '</a></h2>';
    $line = $line . $line_new;
    }
$line = $line . '</div>';
$this->layout()->sponsor0 = $line;

/**
 * dispay all "provincia" in  provincia
 */
$line4 = '';
foreach ($zonaList as $key=>$zonaList2){
    $line4_new = '<h2><a href="'. $this->url(array('controller'=>'Index',
                                                    'action'=>'provincia',
                                                    'id'=> $zonaList2,
                                                   ), 'index', TRUE) .'">' . $zonaList2 . '</a></h2>';
    $line4 = $line4 . $line4_new;
    }
$line4 = $line4 . '';
$this->layout()->provincia = $line4;
?>
<?php
   $piva = $this->piva;
   echo "<p>Seleziona le immagini che vuoi
            rimuovere e poi premi il bottone \"Elimina immagini\" a fondo pagina.</p>";
   echo "<form action=\"/Club/delete-club-img/piva" . "/" . $piva . "/\"" . "method=\"post\">";
   foreach($club_img as $key=>$club_img2 ) {
        $img_path = $club_img2['img_path'];
        $img_path_thumb = $club_img2['img_thumb'];
        $img_alt = $club_img2['alt'];
        $img_title = $club_img2['title'];
        echo "<div>";
?>
        <img src="<?php echo $this->baseUrl() . "/" . $img_path_thumb ?>" alt=\" <?php echo $img_path_thumb ?> \""/>
<?php
        echo "<input type=\"checkbox\" name=\"img_to_delete[]\" value=\"$img_path\"/>";
        echo "</div>";
  }
  echo "<button type=\"submit\" name=\"submit\" value=\"Submit\">Elimina immagini</button>";
  echo "</form>";
?>
<br />
<h5>
    <a href="<?php echo $this->url(array('controller'=>'admin',
                                     'action'=>'index'),
                                     'admin', TRUE);?>"><- indietro
    </a>
</h5>